package com.alpha.tables;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the message database table.
 * 
 */
@Entity
@Table(name="activity")
public class Activity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private ActivityPK id;

	private String desc;

	private int charge;
	
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="day")
	private Date day;

	//bi-directional many-to-one association to Employee
    @ManyToOne
	@JoinColumn(name="employee_idemployee")
    private Employee employee;
		
    @ManyToOne
	@JoinColumn(name="project_idproject")
    private Project project;
    
    public Activity() {
    }

	public ActivityPK getId() {
		return this.id;
	}

	public void setId(ActivityPK id) {
		this.id = id;
	}
	
	public String getDesc() {
		return this.desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCharge() {
		return this.charge;
	}

	public void setCharge(int charge) {
		this.charge = charge;
	}

	public Date getDay() {
		return this.day;
	}

	public void setDay(Date day) {
		this.day = day;
	}
	
	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	public Project getProject() {
		return this.project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

}